package com.studentexam.student.dao;

import com.studentexam.student.model.Answer;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
@Mapper
public interface AnswerMapper {
    /*增删改查*/
    int insertAnswer(Answer answer);

    int updateAnswer(Answer answer);

    int delAnswer(Integer answerid);

    List<Answer> getByAnswerid(Integer answerid);

    List<Answer> getAllAnswer(Answer answer);
/*外键查询方法*/
    int getStudentCount(Integer studentid);
    int getTeacherCount(Integer teacherid);
    int getExamCount(Integer examid);

}
